package com.sailing.core.demo.doutresolving;

public class LongDivision {
	public static String division(){
		long micros_per_day = 24 * 60 * 60 * 1000 * 1000;
		System.out.println("micros_per_day in division is " + micros_per_day);
		long millis_per_day = 24 * 60 * 60 * 1000;
		System.out.println("millis_per_day in division is " + millis_per_day);
		return String.valueOf(micros_per_day / millis_per_day);
	}
	public static String division1(){
		long micros_per_day = 24L * 60 * 60 * 1000 * 1000;
		System.out.println("micros_per_day in division1 is " + micros_per_day);
		long millis_per_day = 24L * 60 * 60 * 1000;
		System.out.println("millis_per_day in division1 is " + millis_per_day);
		return String.valueOf(micros_per_day / millis_per_day);
	}
	public static void main(String[] args) {
		System.out.println((3<<1));
		System.out.println((1<<31));
		//幂次方
		System.out.println(Math.pow(2, 16));
		System.out.println(LongDivision.division());
		//
		System.out.println(LongDivision.division1());
	}
}
